<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>LCOV - code analysis - /usr/include/boost/filesystem/operations.hpp</title>
  <link rel="stylesheet" type="text/css" href="../../../../gcov.css">
</head>

<body>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="title">LCOV - code coverage report</td></tr>
    <tr><td class="ruler"><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>

    <tr>
      <td width="100%">
        <table cellpadding=1 border=0 width="100%">
          <tr>
            <td width="10%" class="headerItem">Current view:</td>
            <td width="35%" class="headerValue"><a href="../../../../index.html">top level</a> - <a href="index.html">usr/include/boost/filesystem</a> - operations.hpp<span style="font-size: 80%;"> (source / <a href="operations.hpp.func-sort-c.html">functions</a>)</span></td>
            <td width="5%"></td>
            <td width="15%"></td>
            <td width="10%" class="headerCovTableHead">Hit</td>
            <td width="10%" class="headerCovTableHead">Total</td>
            <td width="15%" class="headerCovTableHead">Coverage</td>
          </tr>
          <tr>
            <td class="headerItem">Test:</td>
            <td class="headerValue">code analysis</td>
            <td></td>
            <td class="headerItem">Lines:</td>
            <td class="headerCovTableEntry">0</td>
            <td class="headerCovTableEntry">9</td>
            <td class="headerCovTableEntryLo">0.0 %</td>
          </tr>
          <tr>
            <td class="headerItem">Date:</td>
            <td class="headerValue">2020-09-11 22:25:26</td>
            <td></td>
            <td class="headerItem">Functions:</td>
            <td class="headerCovTableEntry">0</td>
            <td class="headerCovTableEntry">2</td>
            <td class="headerCovTableEntryLo">0.0 %</td>
          </tr>
          <tr>
            <td class="headerItem">Legend:</td>
            <td class="headerValueLeg">            Lines:
            <span class="coverLegendCov">hit</span>
            <span class="coverLegendNoCov">not hit</span>
</td>
            <td></td>
          </tr>
          <tr><td><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>
        </table>
      </td>
    </tr>

    <tr><td class="ruler"><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>
  </table>

  <table cellpadding=0 cellspacing=0 border=0>
    <tr>
      <td><br></td>
    </tr>
    <tr>
      <td>
<pre class="sourceHeading">          Line data    Source code</pre>
<pre class="source">
<a name="1"><span class="lineNum">       1 </span>            : //  boost/filesystem/operations.hpp  ---------------------------------------------------//</a>
<span class="lineNum">       2 </span>            : 
<span class="lineNum">       3 </span>            : //  Copyright Beman Dawes 2002-2009
<span class="lineNum">       4 </span>            : //  Copyright Jan Langer 2002
<span class="lineNum">       5 </span>            : //  Copyright Dietmar Kuehl 2001                                        
<span class="lineNum">       6 </span>            : //  Copyright Vladimir Prus 2002
<span class="lineNum">       7 </span>            :    
<span class="lineNum">       8 </span>            : //  Distributed under the Boost Software License, Version 1.0.
<span class="lineNum">       9 </span>            : //  See http://www.boost.org/LICENSE_1_0.txt
<span class="lineNum">      10 </span>            : 
<span class="lineNum">      11 </span>            : //  Library home page: http://www.boost.org/libs/filesystem
<span class="lineNum">      12 </span>            : 
<span class="lineNum">      13 </span>            : //--------------------------------------------------------------------------------------//
<span class="lineNum">      14 </span>            : 
<span class="lineNum">      15 </span>            : #ifndef BOOST_FILESYSTEM3_OPERATIONS_HPP
<span class="lineNum">      16 </span>            : #define BOOST_FILESYSTEM3_OPERATIONS_HPP
<span class="lineNum">      17 </span>            : 
<span class="lineNum">      18 </span>            : #include &lt;boost/config.hpp&gt;
<span class="lineNum">      19 </span>            : 
<span class="lineNum">      20 </span>            : # if defined( BOOST_NO_STD_WSTRING )
<span class="lineNum">      21 </span>            : #   error Configuration not supported: Boost.Filesystem V3 and later requires std::wstring support
<span class="lineNum">      22 </span>            : # endif
<span class="lineNum">      23 </span>            : 
<span class="lineNum">      24 </span>            : #include &lt;boost/filesystem/config.hpp&gt;
<span class="lineNum">      25 </span>            : #include &lt;boost/filesystem/path.hpp&gt;
<span class="lineNum">      26 </span>            : 
<span class="lineNum">      27 </span>            : #include &lt;boost/detail/scoped_enum_emulation.hpp&gt;
<span class="lineNum">      28 </span>            : #include &lt;boost/detail/bitmask.hpp&gt;
<span class="lineNum">      29 </span>            : #include &lt;boost/system/error_code.hpp&gt;
<span class="lineNum">      30 </span>            : #include &lt;boost/system/system_error.hpp&gt;
<span class="lineNum">      31 </span>            : #include &lt;boost/shared_ptr.hpp&gt;
<span class="lineNum">      32 </span>            : #include &lt;boost/utility/enable_if.hpp&gt;
<span class="lineNum">      33 </span>            : #include &lt;boost/type_traits/is_same.hpp&gt;
<span class="lineNum">      34 </span>            : #include &lt;boost/iterator.hpp&gt;
<span class="lineNum">      35 </span>            : #include &lt;boost/cstdint.hpp&gt;
<span class="lineNum">      36 </span>            : #include &lt;boost/range/mutable_iterator.hpp&gt;
<span class="lineNum">      37 </span>            : #include &lt;boost/range/const_iterator.hpp&gt;
<span class="lineNum">      38 </span>            : #include &lt;boost/assert.hpp&gt;
<span class="lineNum">      39 </span>            : #include &lt;string&gt;
<span class="lineNum">      40 </span>            : #include &lt;utility&gt; // for pair
<span class="lineNum">      41 </span>            : #include &lt;ctime&gt;
<span class="lineNum">      42 </span>            : #include &lt;vector&gt;
<span class="lineNum">      43 </span>            : #include &lt;stack&gt;
<span class="lineNum">      44 </span>            : 
<span class="lineNum">      45 </span>            : #ifdef BOOST_WINDOWS_API
<span class="lineNum">      46 </span>            : #  include &lt;fstream&gt;
<span class="lineNum">      47 </span>            : #endif
<span class="lineNum">      48 </span>            : 
<span class="lineNum">      49 </span>            : #include &lt;boost/config/abi_prefix.hpp&gt; // must be the last #include
<span class="lineNum">      50 </span>            : 
<span class="lineNum">      51 </span>            : //--------------------------------------------------------------------------------------//
<span class="lineNum">      52 </span>            : 
<span class="lineNum">      53 </span>            : namespace boost
<span class="lineNum">      54 </span>            : {
<span class="lineNum">      55 </span>            :   namespace filesystem
<span class="lineNum">      56 </span>            :   {
<span class="lineNum">      57 </span>            : 
<span class="lineNum">      58 </span>            :     //--------------------------------------------------------------------------------------//
<span class="lineNum">      59 </span>            :     //                                                                                      //
<span class="lineNum">      60 </span>            :     //                            class filesystem_error                                    //
<span class="lineNum">      61 </span>            :     //                                                                                      //
<span class="lineNum">      62 </span>            :     //--------------------------------------------------------------------------------------//
<span class="lineNum">      63 </span>            : 
<span class="lineNum">      64 </span>            :     class BOOST_SYMBOL_VISIBLE filesystem_error : public system::system_error
<span class="lineNum">      65 </span>            :     {
<span class="lineNum">      66 </span>            :       // see http://www.boost.org/more/error_handling.html for design rationale
<span class="lineNum">      67 </span>            : 
<span class="lineNum">      68 </span>            :       // all functions are inline to avoid issues with crossing dll boundaries
<span class="lineNum">      69 </span>            : 
<span class="lineNum">      70 </span>            :       // functions previously throw() are now BOOST_NOEXCEPT_OR_NOTHROW
<span class="lineNum">      71 </span>            :       // functions previously without throw() are now BOOST_NOEXCEPT
<span class="lineNum">      72 </span>            : 
<span class="lineNum">      73 </span>            :     public:
<span class="lineNum">      74 </span>            :       // compiler generates copy constructor and copy assignment
<span class="lineNum">      75 </span>            : 
<span class="lineNum">      76 </span>            :       filesystem_error(
<span class="lineNum">      77 </span>            :         const std::string &amp; what_arg, system::error_code ec) BOOST_NOEXCEPT
<span class="lineNum">      78 </span>            :         : system::system_error(ec, what_arg)
<span class="lineNum">      79 </span>            :       {
<span class="lineNum">      80 </span>            :         try
<span class="lineNum">      81 </span>            :         {
<span class="lineNum">      82 </span>            :           m_imp_ptr.reset(new m_imp);
<span class="lineNum">      83 </span>            :         }
<span class="lineNum">      84 </span>            :         catch (...) { m_imp_ptr.reset(); }
<span class="lineNum">      85 </span>            :       }
<span class="lineNum">      86 </span>            : 
<span class="lineNum">      87 </span>            :       filesystem_error(
<span class="lineNum">      88 </span>            :         const std::string &amp; what_arg, const path&amp; path1_arg,
<span class="lineNum">      89 </span>            :         system::error_code ec) BOOST_NOEXCEPT
<span class="lineNum">      90 </span>            :         : system::system_error(ec, what_arg)
<span class="lineNum">      91 </span>            :       {
<span class="lineNum">      92 </span>            :         try
<span class="lineNum">      93 </span>            :         {
<span class="lineNum">      94 </span>            :           m_imp_ptr.reset(new m_imp);
<span class="lineNum">      95 </span>            :           m_imp_ptr-&gt;m_path1 = path1_arg;
<span class="lineNum">      96 </span>            :         }
<span class="lineNum">      97 </span>            :         catch (...) { m_imp_ptr.reset(); }
<span class="lineNum">      98 </span>            :       }
<span class="lineNum">      99 </span>            : 
<span class="lineNum">     100 </span>            :       filesystem_error(
<span class="lineNum">     101 </span>            :         const std::string &amp; what_arg, const path&amp; path1_arg,
<span class="lineNum">     102 </span>            :         const path&amp; path2_arg, system::error_code ec) BOOST_NOEXCEPT
<span class="lineNum">     103 </span>            :         : system::system_error(ec, what_arg)
<span class="lineNum">     104 </span>            :       {
<span class="lineNum">     105 </span>            :         try
<span class="lineNum">     106 </span>            :         {
<span class="lineNum">     107 </span>            :           m_imp_ptr.reset(new m_imp);
<span class="lineNum">     108 </span>            :           m_imp_ptr-&gt;m_path1 = path1_arg;
<span class="lineNum">     109 </span>            :           m_imp_ptr-&gt;m_path2 = path2_arg;
<span class="lineNum">     110 </span>            :         }
<span class="lineNum">     111 </span>            :         catch (...) { m_imp_ptr.reset(); }
<span class="lineNum">     112 </span>            :       }
<span class="lineNum">     113 </span>            : 
<span class="lineNum">     114 </span>            :       ~filesystem_error() BOOST_NOEXCEPT_OR_NOTHROW{}
<span class="lineNum">     115 </span>            : 
<span class="lineNum">     116 </span>            :         const path&amp; path1() const BOOST_NOEXCEPT
<span class="lineNum">     117 </span>            :       {
<span class="lineNum">     118 </span>            :         static const path empty_path;
<span class="lineNum">     119 </span>            :         return m_imp_ptr.get() ? m_imp_ptr-&gt;m_path1 : empty_path;
<span class="lineNum">     120 </span>            :       }
<span class="lineNum">     121 </span>            :         const path&amp; path2() const  BOOST_NOEXCEPT
<span class="lineNum">     122 </span>            :       {
<span class="lineNum">     123 </span>            :         static const path empty_path;
<span class="lineNum">     124 </span>            :         return m_imp_ptr.get() ? m_imp_ptr-&gt;m_path2 : empty_path;
<span class="lineNum">     125 </span>            :       }
<span class="lineNum">     126 </span>            : 
<span class="lineNum">     127 </span>            :         const char* what() const BOOST_NOEXCEPT_OR_NOTHROW
<span class="lineNum">     128 </span>            :       {
<span class="lineNum">     129 </span>            :         if (!m_imp_ptr.get())
<span class="lineNum">     130 </span>            :         return system::system_error::what();
<span class="lineNum">     131 </span>            : 
<span class="lineNum">     132 </span>            :         try
<span class="lineNum">     133 </span>            :         {
<span class="lineNum">     134 </span>            :           if (m_imp_ptr-&gt;m_what.empty())
<span class="lineNum">     135 </span>            :           {
<span class="lineNum">     136 </span>            :             m_imp_ptr-&gt;m_what = system::system_error::what();
<span class="lineNum">     137 </span>            :             if (!m_imp_ptr-&gt;m_path1.empty())
<span class="lineNum">     138 </span>            :             {
<span class="lineNum">     139 </span>            :               m_imp_ptr-&gt;m_what += &quot;: \&quot;&quot;;
<span class="lineNum">     140 </span>            :               m_imp_ptr-&gt;m_what += m_imp_ptr-&gt;m_path1.string();
<span class="lineNum">     141 </span>            :               m_imp_ptr-&gt;m_what += &quot;\&quot;&quot;;
<span class="lineNum">     142 </span>            :             }
<span class="lineNum">     143 </span>            :             if (!m_imp_ptr-&gt;m_path2.empty())
<span class="lineNum">     144 </span>            :             {
<span class="lineNum">     145 </span>            :               m_imp_ptr-&gt;m_what += &quot;, \&quot;&quot;;
<span class="lineNum">     146 </span>            :               m_imp_ptr-&gt;m_what += m_imp_ptr-&gt;m_path2.string();
<span class="lineNum">     147 </span>            :               m_imp_ptr-&gt;m_what += &quot;\&quot;&quot;;
<span class="lineNum">     148 </span>            :             }
<span class="lineNum">     149 </span>            :           }
<span class="lineNum">     150 </span>            :           return m_imp_ptr-&gt;m_what.c_str();
<span class="lineNum">     151 </span>            :         }
<span class="lineNum">     152 </span>            :         catch (...)
<span class="lineNum">     153 </span>            :         {
<span class="lineNum">     154 </span>            :           return system::system_error::what();
<span class="lineNum">     155 </span>            :         }
<span class="lineNum">     156 </span>            :       }
<a name="157"><span class="lineNum">     157 </span>            : </a>
<span class="lineNum">     158 </span>            :     private:
<span class="lineNum">     159 </span><span class="lineNoCov">          0 :       struct m_imp</span>
<span class="lineNum">     160 </span>            :       {
<span class="lineNum">     161 </span>            :         path         m_path1; // may be empty()
<span class="lineNum">     162 </span>            :         path         m_path2; // may be empty()
<span class="lineNum">     163 </span>            :         std::string  m_what;  // not built until needed
<span class="lineNum">     164 </span>            :       };
<span class="lineNum">     165 </span>            :       boost::shared_ptr&lt;m_imp&gt; m_imp_ptr;
<span class="lineNum">     166 </span>            :     };
<span class="lineNum">     167 </span>            : 
<span class="lineNum">     168 </span>            : //--------------------------------------------------------------------------------------//
<span class="lineNum">     169 </span>            : //                                     file_type                                        //
<span class="lineNum">     170 </span>            : //--------------------------------------------------------------------------------------//
<span class="lineNum">     171 </span>            : 
<span class="lineNum">     172 </span>            :   enum file_type
<span class="lineNum">     173 </span>            :   { 
<span class="lineNum">     174 </span>            :     status_error,
<span class="lineNum">     175 </span>            : #   ifndef BOOST_FILESYSTEM_NO_DEPRECATED
<span class="lineNum">     176 </span>            :     status_unknown = status_error,
<span class="lineNum">     177 </span>            : #   endif
<span class="lineNum">     178 </span>            :     file_not_found,
<span class="lineNum">     179 </span>            :     regular_file,
<span class="lineNum">     180 </span>            :     directory_file,
<span class="lineNum">     181 </span>            :     // the following may not apply to some operating systems or file systems
<span class="lineNum">     182 </span>            :     symlink_file,
<span class="lineNum">     183 </span>            :     block_file,
<span class="lineNum">     184 </span>            :     character_file,
<span class="lineNum">     185 </span>            :     fifo_file,
<span class="lineNum">     186 </span>            :     socket_file,
<span class="lineNum">     187 </span>            :     reparse_file,  // Windows: FILE_ATTRIBUTE_REPARSE_POINT that is not a symlink
<span class="lineNum">     188 </span>            :     type_unknown,  // file does exist, but isn't one of the above types or
<span class="lineNum">     189 </span>            :                    // we don't have strong enough permission to find its type
<span class="lineNum">     190 </span>            : 
<span class="lineNum">     191 </span>            :     _detail_directory_symlink  // internal use only; never exposed to users
<span class="lineNum">     192 </span>            :   };
<span class="lineNum">     193 </span>            : 
<span class="lineNum">     194 </span>            : //--------------------------------------------------------------------------------------//
<span class="lineNum">     195 </span>            : //                                       perms                                          //
<span class="lineNum">     196 </span>            : //--------------------------------------------------------------------------------------//
<span class="lineNum">     197 </span>            : 
<span class="lineNum">     198 </span>            :   enum perms
<span class="lineNum">     199 </span>            :   {
<span class="lineNum">     200 </span>            :     no_perms = 0,       // file_not_found is no_perms rather than perms_not_known
<span class="lineNum">     201 </span>            : 
<span class="lineNum">     202 </span>            :     // POSIX equivalent macros given in comments.
<span class="lineNum">     203 </span>            :     // Values are from POSIX and are given in octal per the POSIX standard.
<span class="lineNum">     204 </span>            : 
<span class="lineNum">     205 </span>            :     // permission bits
<span class="lineNum">     206 </span>            :     
<span class="lineNum">     207 </span>            :     owner_read = 0400,  // S_IRUSR, Read permission, owner
<span class="lineNum">     208 </span>            :     owner_write = 0200, // S_IWUSR, Write permission, owner
<span class="lineNum">     209 </span>            :     owner_exe = 0100,   // S_IXUSR, Execute/search permission, owner
<span class="lineNum">     210 </span>            :     owner_all = 0700,   // S_IRWXU, Read, write, execute/search by owner
<span class="lineNum">     211 </span>            : 
<span class="lineNum">     212 </span>            :     group_read = 040,   // S_IRGRP, Read permission, group
<span class="lineNum">     213 </span>            :     group_write = 020,  // S_IWGRP, Write permission, group
<span class="lineNum">     214 </span>            :     group_exe = 010,    // S_IXGRP, Execute/search permission, group
<span class="lineNum">     215 </span>            :     group_all = 070,    // S_IRWXG, Read, write, execute/search by group
<span class="lineNum">     216 </span>            : 
<span class="lineNum">     217 </span>            :     others_read = 04,   // S_IROTH, Read permission, others
<span class="lineNum">     218 </span>            :     others_write = 02,  // S_IWOTH, Write permission, others
<span class="lineNum">     219 </span>            :     others_exe = 01,    // S_IXOTH, Execute/search permission, others
<span class="lineNum">     220 </span>            :     others_all = 07,    // S_IRWXO, Read, write, execute/search by others
<span class="lineNum">     221 </span>            : 
<span class="lineNum">     222 </span>            :     all_all = 0777,     // owner_all|group_all|others_all
<span class="lineNum">     223 </span>            : 
<span class="lineNum">     224 </span>            :     // other POSIX bits
<span class="lineNum">     225 </span>            : 
<span class="lineNum">     226 </span>            :     set_uid_on_exe = 04000, // S_ISUID, Set-user-ID on execution
<span class="lineNum">     227 </span>            :     set_gid_on_exe = 02000, // S_ISGID, Set-group-ID on execution
<span class="lineNum">     228 </span>            :     sticky_bit     = 01000, // S_ISVTX,
<span class="lineNum">     229 </span>            :                             // (POSIX XSI) On directories, restricted deletion flag 
<span class="lineNum">     230 </span>            :                             // (V7) 'sticky bit': save swapped text even after use 
<span class="lineNum">     231 </span>            :                             // (SunOS) On non-directories: don't cache this file
<span class="lineNum">     232 </span>            :                             // (SVID-v4.2) On directories: restricted deletion flag
<span class="lineNum">     233 </span>            :                             // Also see http://en.wikipedia.org/wiki/Sticky_bit
<span class="lineNum">     234 </span>            : 
<span class="lineNum">     235 </span>            :     perms_mask = 07777,     // all_all|set_uid_on_exe|set_gid_on_exe|sticky_bit
<span class="lineNum">     236 </span>            : 
<span class="lineNum">     237 </span>            :     perms_not_known = 0xFFFF, // present when directory_entry cache not loaded
<span class="lineNum">     238 </span>            : 
<span class="lineNum">     239 </span>            :     // options for permissions() function
<span class="lineNum">     240 </span>            : 
<span class="lineNum">     241 </span>            :     add_perms = 0x1000,     // adds the given permission bits to the current bits
<span class="lineNum">     242 </span>            :     remove_perms = 0x2000,  // removes the given permission bits from the current bits;
<span class="lineNum">     243 </span>            :                             // choose add_perms or remove_perms, not both; if neither add_perms
<span class="lineNum">     244 </span>            :                             // nor remove_perms is given, replace the current bits with
<span class="lineNum">     245 </span>            :                             // the given bits.
<span class="lineNum">     246 </span>            : 
<span class="lineNum">     247 </span>            :     symlink_perms = 0x4000  // on POSIX, don't resolve symlinks; implied on Windows
<span class="lineNum">     248 </span>            :   };
<span class="lineNum">     249 </span>            : 
<span class="lineNum">     250 </span>            :   BOOST_BITMASK(perms)
<span class="lineNum">     251 </span>            : 
<span class="lineNum">     252 </span>            : //--------------------------------------------------------------------------------------//
<span class="lineNum">     253 </span>            : //                                    file_status                                       //
<span class="lineNum">     254 </span>            : //--------------------------------------------------------------------------------------//
<span class="lineNum">     255 </span>            : 
<span class="lineNum">     256 </span>            :   class BOOST_FILESYSTEM_DECL file_status
<span class="lineNum">     257 </span>            :   {
<span class="lineNum">     258 </span>            :   public:
<span class="lineNum">     259 </span>            :              file_status()            : m_value(status_error), m_perms(perms_not_known) {}
<span class="lineNum">     260 </span>            :     explicit file_status(file_type v, perms prms = perms_not_known)
<span class="lineNum">     261 </span>            :                                       : m_value(v), m_perms(prms) {}
<span class="lineNum">     262 </span>            : 
<span class="lineNum">     263 </span>            :     // observers
<span class="lineNum">     264 </span>            :     file_type  type() const                       { return m_value; }
<span class="lineNum">     265 </span>            :     perms      permissions() const                { return m_perms; } 
<span class="lineNum">     266 </span>            : 
<span class="lineNum">     267 </span>            :     // modifiers
<span class="lineNum">     268 </span>            :     void       type(file_type v)                  { m_value = v; }
<span class="lineNum">     269 </span>            :     void       permissions(perms prms)            { m_perms = prms; }
<span class="lineNum">     270 </span>            : 
<span class="lineNum">     271 </span>            :     bool operator==(const file_status&amp; rhs) const { return type() == rhs.type() &amp;&amp; 
<span class="lineNum">     272 </span>            :                                                     permissions() == rhs.permissions(); }
<span class="lineNum">     273 </span>            :     bool operator!=(const file_status&amp; rhs) const { return !(*this == rhs); }
<span class="lineNum">     274 </span>            : 
<span class="lineNum">     275 </span>            :   private:
<span class="lineNum">     276 </span>            :     file_type   m_value;
<span class="lineNum">     277 </span>            :     enum perms  m_perms;
<span class="lineNum">     278 </span>            :   };
<span class="lineNum">     279 </span>            : 
<span class="lineNum">     280 </span>            :   inline bool type_present(file_status f) { return f.type() != status_error; }
<span class="lineNum">     281 </span>            :   inline bool permissions_present(file_status f)
<span class="lineNum">     282 </span>            :                                           {return f.permissions() != perms_not_known;}
<span class="lineNum">     283 </span>            :   inline bool status_known(file_status f) { return type_present(f) &amp;&amp; permissions_present(f); }
<span class="lineNum">     284 </span>            :   inline bool exists(file_status f)       { return f.type() != status_error
<span class="lineNum">     285 </span>            :                                                 &amp;&amp; f.type() != file_not_found; }
<span class="lineNum">     286 </span>            :   inline bool is_regular_file(file_status f){ return f.type() == regular_file; }
<span class="lineNum">     287 </span>            :   inline bool is_directory(file_status f) { return f.type() == directory_file; }
<span class="lineNum">     288 </span>            :   inline bool is_symlink(file_status f)   { return f.type() == symlink_file; }
<span class="lineNum">     289 </span>            :   inline bool is_other(file_status f)     { return exists(f) &amp;&amp; !is_regular_file(f)
<span class="lineNum">     290 </span>            :                                                 &amp;&amp; !is_directory(f) &amp;&amp; !is_symlink(f); }
<span class="lineNum">     291 </span>            : 
<span class="lineNum">     292 </span>            : # ifndef BOOST_FILESYSTEM_NO_DEPRECATED
<span class="lineNum">     293 </span>            :   inline bool is_regular(file_status f)   { return f.type() == regular_file; }
<span class="lineNum">     294 </span>            : # endif
<span class="lineNum">     295 </span>            : 
<span class="lineNum">     296 </span>            :   struct space_info
<span class="lineNum">     297 </span>            :   {
<span class="lineNum">     298 </span>            :     // all values are byte counts
<span class="lineNum">     299 </span>            :     boost::uintmax_t capacity;
<span class="lineNum">     300 </span>            :     boost::uintmax_t free;      // &lt;= capacity
<span class="lineNum">     301 </span>            :     boost::uintmax_t available; // &lt;= free
<span class="lineNum">     302 </span>            :   };
<span class="lineNum">     303 </span>            : 
<span class="lineNum">     304 </span>            :   BOOST_SCOPED_ENUM_START(copy_option)
<span class="lineNum">     305 </span>            :     {none=0, fail_if_exists = none, overwrite_if_exists};
<span class="lineNum">     306 </span>            :   BOOST_SCOPED_ENUM_END
<span class="lineNum">     307 </span>            : 
<span class="lineNum">     308 </span>            : //--------------------------------------------------------------------------------------//
<span class="lineNum">     309 </span>            : //                             implementation details                                   //
<span class="lineNum">     310 </span>            : //--------------------------------------------------------------------------------------//
<span class="lineNum">     311 </span>            : 
<span class="lineNum">     312 </span>            :   namespace detail
<span class="lineNum">     313 </span>            :   {
<span class="lineNum">     314 </span>            :     //  We cannot pass a BOOST_SCOPED_ENUM to a compled function because it will result
<span class="lineNum">     315 </span>            :     //  in an undefined reference if the library is compled with -std=c++0x but the use
<span class="lineNum">     316 </span>            :     //  is compiled in C++03 mode, or visa versa. See tickets 6124, 6779, 10038.
<span class="lineNum">     317 </span>            :     enum copy_option {none=0, fail_if_exists = none, overwrite_if_exists};
<span class="lineNum">     318 </span>            : 
<span class="lineNum">     319 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     320 </span>            :     file_status status(const path&amp;p, system::error_code* ec=0);
<span class="lineNum">     321 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     322 </span>            :     file_status symlink_status(const path&amp; p, system::error_code* ec=0);
<span class="lineNum">     323 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     324 </span>            :     bool is_empty(const path&amp; p, system::error_code* ec=0);
<span class="lineNum">     325 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     326 </span>            :     path initial_path(system::error_code* ec=0);
<span class="lineNum">     327 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     328 </span>            :     path canonical(const path&amp; p, const path&amp; base, system::error_code* ec=0);
<span class="lineNum">     329 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     330 </span>            :     void copy(const path&amp; from, const path&amp; to, system::error_code* ec=0);
<span class="lineNum">     331 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     332 </span>            :     void copy_directory(const path&amp; from, const path&amp; to, system::error_code* ec=0);
<span class="lineNum">     333 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     334 </span>            :     void copy_file(const path&amp; from, const path&amp; to,  // See ticket #2925
<span class="lineNum">     335 </span>            :                    detail::copy_option option, system::error_code* ec=0);
<span class="lineNum">     336 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     337 </span>            :     void copy_symlink(const path&amp; existing_symlink, const path&amp; new_symlink, system::error_code* ec=0);
<span class="lineNum">     338 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     339 </span>            :     bool create_directories(const path&amp; p, system::error_code* ec=0);
<span class="lineNum">     340 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     341 </span>            :     bool create_directory(const path&amp; p, system::error_code* ec=0);
<span class="lineNum">     342 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     343 </span>            :     void create_directory_symlink(const path&amp; to, const path&amp; from,
<span class="lineNum">     344 </span>            :                                   system::error_code* ec=0);
<span class="lineNum">     345 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     346 </span>            :     void create_hard_link(const path&amp; to, const path&amp; from, system::error_code* ec=0);
<span class="lineNum">     347 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     348 </span>            :     void create_symlink(const path&amp; to, const path&amp; from, system::error_code* ec=0);
<span class="lineNum">     349 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     350 </span>            :     path current_path(system::error_code* ec=0);
<span class="lineNum">     351 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     352 </span>            :     void current_path(const path&amp; p, system::error_code* ec=0);
<span class="lineNum">     353 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     354 </span>            :     bool equivalent(const path&amp; p1, const path&amp; p2, system::error_code* ec=0);
<span class="lineNum">     355 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     356 </span>            :     boost::uintmax_t file_size(const path&amp; p, system::error_code* ec=0);
<span class="lineNum">     357 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     358 </span>            :     boost::uintmax_t hard_link_count(const path&amp; p, system::error_code* ec=0);
<span class="lineNum">     359 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     360 </span>            :     std::time_t last_write_time(const path&amp; p, system::error_code* ec=0);
<span class="lineNum">     361 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     362 </span>            :     void last_write_time(const path&amp; p, const std::time_t new_time,
<span class="lineNum">     363 </span>            :                          system::error_code* ec=0);
<span class="lineNum">     364 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     365 </span>            :     void permissions(const path&amp; p, perms prms, system::error_code* ec=0);
<span class="lineNum">     366 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     367 </span>            :     path read_symlink(const path&amp; p, system::error_code* ec=0);
<span class="lineNum">     368 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     369 </span>            :       // For standardization, if the committee doesn't like &quot;remove&quot;, consider &quot;eliminate&quot;
<span class="lineNum">     370 </span>            :     bool remove(const path&amp; p, system::error_code* ec=0);
<span class="lineNum">     371 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     372 </span>            :     boost::uintmax_t remove_all(const path&amp; p, system::error_code* ec=0);
<span class="lineNum">     373 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     374 </span>            :     void rename(const path&amp; old_p, const path&amp; new_p, system::error_code* ec=0);
<span class="lineNum">     375 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     376 </span>            :     void resize_file(const path&amp; p, uintmax_t size, system::error_code* ec=0);
<span class="lineNum">     377 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     378 </span>            :     space_info space(const path&amp; p, system::error_code* ec=0); 
<span class="lineNum">     379 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     380 </span>            :     path system_complete(const path&amp; p, system::error_code* ec=0);
<span class="lineNum">     381 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     382 </span>            :     path temp_directory_path(system::error_code* ec=0);
<span class="lineNum">     383 </span>            :     BOOST_FILESYSTEM_DECL
<span class="lineNum">     384 </span>            :     path unique_path(const path&amp; p, system::error_code* ec=0);
<span class="lineNum">     385 </span>            :   }  // namespace detail
<span class="lineNum">     386 </span>            : 
<span class="lineNum">     387 </span>            : //--------------------------------------------------------------------------------------//
<span class="lineNum">     388 </span>            : //                                                                                      //
<span class="lineNum">     389 </span>            : //                             status query functions                                   //
<span class="lineNum">     390 </span>            : //                                                                                      //
<span class="lineNum">     391 </span>            : //--------------------------------------------------------------------------------------//
<span class="lineNum">     392 </span>            : 
<span class="lineNum">     393 </span>            :   inline
<span class="lineNum">     394 </span>            :   file_status status(const path&amp; p)    {return detail::status(p);}
<span class="lineNum">     395 </span>            :   inline 
<span class="lineNum">     396 </span>            :   file_status status(const path&amp; p, system::error_code&amp; ec)
<span class="lineNum">     397 </span>            :                                        {return detail::status(p, &amp;ec);}
<span class="lineNum">     398 </span>            :   inline 
<span class="lineNum">     399 </span>            :   file_status symlink_status(const path&amp; p) {return detail::symlink_status(p);}
<span class="lineNum">     400 </span>            :   inline
<span class="lineNum">     401 </span>            :   file_status symlink_status(const path&amp; p, system::error_code&amp; ec)
<span class="lineNum">     402 </span>            :                                        {return detail::symlink_status(p, &amp;ec);}
<span class="lineNum">     403 </span>            :   inline 
<span class="lineNum">     404 </span>            :   bool exists(const path&amp; p)           {return exists(detail::status(p));}
<span class="lineNum">     405 </span>            :   inline 
<span class="lineNum">     406 </span>            :   bool exists(const path&amp; p, system::error_code&amp; ec)
<span class="lineNum">     407 </span>            :                                        {return exists(detail::status(p, &amp;ec));}
<span class="lineNum">     408 </span>            :   inline 
<span class="lineNum">     409 </span><span class="lineNoCov">          0 :   bool is_directory(const path&amp; p)     {return is_directory(detail::status(p));}</span>
<span class="lineNum">     410 </span>            :   inline 
<span class="lineNum">     411 </span>            :   bool is_directory(const path&amp; p, system::error_code&amp; ec)
<span class="lineNum">     412 </span>            :                                        {return is_directory(detail::status(p, &amp;ec));}
<span class="lineNum">     413 </span>            :   inline 
<span class="lineNum">     414 </span>            :   bool is_regular_file(const path&amp; p)  {return is_regular_file(detail::status(p));}
<span class="lineNum">     415 </span>            :   inline 
<span class="lineNum">     416 </span>            :   bool is_regular_file(const path&amp; p, system::error_code&amp; ec)
<span class="lineNum">     417 </span>            :                                        {return is_regular_file(detail::status(p, &amp;ec));}
<span class="lineNum">     418 </span>            :   inline 
<span class="lineNum">     419 </span>            :   bool is_other(const path&amp; p)         {return is_other(detail::status(p));}
<span class="lineNum">     420 </span>            :   inline 
<span class="lineNum">     421 </span>            :   bool is_other(const path&amp; p, system::error_code&amp; ec)
<span class="lineNum">     422 </span>            :                                        {return is_other(detail::status(p, &amp;ec));}
<span class="lineNum">     423 </span>            :   inline
<span class="lineNum">     424 </span>            :   bool is_symlink(const path&amp; p)       {return is_symlink(detail::symlink_status(p));}
<span class="lineNum">     425 </span>            :   inline 
<span class="lineNum">     426 </span>            :   bool is_symlink(const path&amp; p, system::error_code&amp; ec)
<span class="lineNum">     427 </span>            :                                        {return is_symlink(detail::symlink_status(p, &amp;ec));}
<span class="lineNum">     428 </span>            : # ifndef BOOST_FILESYSTEM_NO_DEPRECATED
<span class="lineNum">     429 </span>            :   inline
<span class="lineNum">     430 </span>            :   bool is_regular(const path&amp; p)       {return is_regular(detail::status(p));}
<span class="lineNum">     431 </span>            :   inline
<span class="lineNum">     432 </span>            :   bool is_regular(const path&amp; p, system::error_code&amp; ec)
<span class="lineNum">     433 </span>            :                                        {return is_regular(detail::status(p, &amp;ec));}
<span class="lineNum">     434 </span>            : # endif
<span class="lineNum">     435 </span>            : 
<span class="lineNum">     436 </span>            :   inline
<span class="lineNum">     437 </span>            :   bool is_empty(const path&amp; p)         {return detail::is_empty(p);}
<span class="lineNum">     438 </span>            :   inline
<span class="lineNum">     439 </span>            :   bool is_empty(const path&amp; p, system::error_code&amp; ec)
<span class="lineNum">     440 </span>            :                                        {return detail::is_empty(p, &amp;ec);}
<span class="lineNum">     441 </span>            : 
<span class="lineNum">     442 </span>            : //--------------------------------------------------------------------------------------//
<span class="lineNum">     443 </span>            : //                                                                                      //
<span class="lineNum">     444 </span>            : //                             operational functions                                    //
<span class="lineNum">     445 </span>            : //                  in alphabetical order, unless otherwise noted                       //
<span class="lineNum">     446 </span>            : //                                                                                      //
<span class="lineNum">     447 </span>            : //--------------------------------------------------------------------------------------//
<span class="lineNum">     448 </span>            :  
<span class="lineNum">     449 </span>            :   //  forward declarations
<span class="lineNum">     450 </span>            :   path current_path();  // fwd declaration
<span class="lineNum">     451 </span>            :   path initial_path();
<span class="lineNum">     452 </span>            : 
<span class="lineNum">     453 </span>            :   BOOST_FILESYSTEM_DECL
<span class="lineNum">     454 </span>            :   path absolute(const path&amp; p, const path&amp; base=current_path());
<span class="lineNum">     455 </span>            :   //  If base.is_absolute(), throws nothing. Thus no need for ec argument
<span class="lineNum">     456 </span>            : 
<span class="lineNum">     457 </span>            :   inline
<span class="lineNum">     458 </span>            :   path canonical(const path&amp; p, const path&amp; base=current_path())
<span class="lineNum">     459 </span>            :                                        {return detail::canonical(p, base);}
<span class="lineNum">     460 </span>            :   inline
<span class="lineNum">     461 </span>            :   path canonical(const path&amp; p, system::error_code&amp; ec)
<span class="lineNum">     462 </span>            :                                        {return detail::canonical(p, current_path(), &amp;ec);}
<span class="lineNum">     463 </span>            :   inline
<span class="lineNum">     464 </span>            :   path canonical(const path&amp; p, const path&amp; base, system::error_code&amp; ec)
<span class="lineNum">     465 </span>            :                                        {return detail::canonical(p, base, &amp;ec);}
<span class="lineNum">     466 </span>            : 
<span class="lineNum">     467 </span>            : # ifndef BOOST_FILESYSTEM_NO_DEPRECATED
<span class="lineNum">     468 </span>            :   inline
<span class="lineNum">     469 </span>            :   path complete(const path&amp; p)
<span class="lineNum">     470 </span>            :   {
<span class="lineNum">     471 </span>            :     return absolute(p, initial_path());
<span class="lineNum">     472 </span>            :   }
<span class="lineNum">     473 </span>            : 
<span class="lineNum">     474 </span>            :   inline
<span class="lineNum">     475 </span>            :   path complete(const path&amp; p, const path&amp; base)
<span class="lineNum">     476 </span>            :   {
<span class="lineNum">     477 </span>            :     return absolute(p, base);
<span class="lineNum">     478 </span>            :   }
<span class="lineNum">     479 </span>            : # endif
<span class="lineNum">     480 </span>            : 
<span class="lineNum">     481 </span>            :   inline
<span class="lineNum">     482 </span>            :   void copy(const path&amp; from, const path&amp; to) {detail::copy(from, to);}
<span class="lineNum">     483 </span>            : 
<span class="lineNum">     484 </span>            :   inline
<span class="lineNum">     485 </span>            :   void copy(const path&amp; from, const path&amp; to, system::error_code&amp; ec) 
<span class="lineNum">     486 </span>            :                                        {detail::copy(from, to, &amp;ec);}
<span class="lineNum">     487 </span>            :   inline
<span class="lineNum">     488 </span>            :   void copy_directory(const path&amp; from, const path&amp; to)
<span class="lineNum">     489 </span>            :                                        {detail::copy_directory(from, to);}
<span class="lineNum">     490 </span>            :   inline
<span class="lineNum">     491 </span>            :   void copy_directory(const path&amp; from, const path&amp; to, system::error_code&amp; ec)
<span class="lineNum">     492 </span>            :                                        {detail::copy_directory(from, to, &amp;ec);}
<span class="lineNum">     493 </span>            :   inline
<span class="lineNum">     494 </span>            :   void copy_file(const path&amp; from, const path&amp; to,   // See ticket #2925
<span class="lineNum">     495 </span>            :                  BOOST_SCOPED_ENUM(copy_option) option)
<span class="lineNum">     496 </span>            :   {
<span class="lineNum">     497 </span>            :     detail::copy_file(from, to, static_cast&lt;detail::copy_option&gt;(option));
<span class="lineNum">     498 </span>            :   }
<span class="lineNum">     499 </span>            :   inline
<span class="lineNum">     500 </span>            :   void copy_file(const path&amp; from, const path&amp; to)
<span class="lineNum">     501 </span>            :   {
<span class="lineNum">     502 </span>            :     detail::copy_file(from, to, detail::fail_if_exists);
<span class="lineNum">     503 </span>            :   }
<span class="lineNum">     504 </span>            :   inline
<span class="lineNum">     505 </span>            :   void copy_file(const path&amp; from, const path&amp; to,   // See ticket #2925
<span class="lineNum">     506 </span>            :                  BOOST_SCOPED_ENUM(copy_option) option, system::error_code&amp; ec)
<span class="lineNum">     507 </span>            :   {
<span class="lineNum">     508 </span>            :     detail::copy_file(from, to, static_cast&lt;detail::copy_option&gt;(option), &amp;ec);
<span class="lineNum">     509 </span>            :   }
<span class="lineNum">     510 </span>            :   inline
<span class="lineNum">     511 </span>            :   void copy_file(const path&amp; from, const path&amp; to, system::error_code&amp; ec)
<span class="lineNum">     512 </span>            :   {
<span class="lineNum">     513 </span>            :     detail::copy_file(from, to, detail::fail_if_exists, &amp;ec);
<span class="lineNum">     514 </span>            :   }
<span class="lineNum">     515 </span>            :   inline
<span class="lineNum">     516 </span>            :   void copy_symlink(const path&amp; existing_symlink,
<span class="lineNum">     517 </span>            :                     const path&amp; new_symlink) {detail::copy_symlink(existing_symlink, new_symlink);}
<span class="lineNum">     518 </span>            : 
<span class="lineNum">     519 </span>            :   inline
<span class="lineNum">     520 </span>            :   void copy_symlink(const path&amp; existing_symlink, const path&amp; new_symlink, system::error_code&amp; ec)
<span class="lineNum">     521 </span>            :                                        {detail::copy_symlink(existing_symlink, new_symlink, &amp;ec);}
<span class="lineNum">     522 </span>            :   inline
<span class="lineNum">     523 </span>            :   bool create_directories(const path&amp; p) {return detail::create_directories(p);}
<span class="lineNum">     524 </span>            : 
<span class="lineNum">     525 </span>            :   inline
<span class="lineNum">     526 </span>            :   bool create_directories(const path&amp; p, system::error_code&amp; ec)
<span class="lineNum">     527 </span>            :                                        {return detail::create_directories(p, &amp;ec);}
<span class="lineNum">     528 </span>            :   inline
<span class="lineNum">     529 </span>            :   bool create_directory(const path&amp; p) {return detail::create_directory(p);}
<span class="lineNum">     530 </span>            : 
<span class="lineNum">     531 </span>            :   inline
<span class="lineNum">     532 </span>            :   bool create_directory(const path&amp; p, system::error_code&amp; ec)
<span class="lineNum">     533 </span>            :                                        {return detail::create_directory(p, &amp;ec);}
<span class="lineNum">     534 </span>            :   inline
<span class="lineNum">     535 </span>            :   void create_directory_symlink(const path&amp; to, const path&amp; from)
<span class="lineNum">     536 </span>            :                                        {detail::create_directory_symlink(to, from);}
<span class="lineNum">     537 </span>            :   inline
<span class="lineNum">     538 </span>            :   void create_directory_symlink(const path&amp; to, const path&amp; from, system::error_code&amp; ec)
<span class="lineNum">     539 </span>            :                                        {detail::create_directory_symlink(to, from, &amp;ec);}
<span class="lineNum">     540 </span>            :   inline
<span class="lineNum">     541 </span>            :   void create_hard_link(const path&amp; to, const path&amp; new_hard_link) {detail::create_hard_link(to, new_hard_link);}
<span class="lineNum">     542 </span>            : 
<span class="lineNum">     543 </span>            :   inline
<span class="lineNum">     544 </span>            :   void create_hard_link(const path&amp; to, const path&amp; new_hard_link, system::error_code&amp; ec)
<span class="lineNum">     545 </span>            :                                        {detail::create_hard_link(to, new_hard_link, &amp;ec);}
<span class="lineNum">     546 </span>            :   inline
<span class="lineNum">     547 </span>            :   void create_symlink(const path&amp; to, const path&amp; new_symlink) {detail::create_symlink(to, new_symlink);}
<span class="lineNum">     548 </span>            : 
<span class="lineNum">     549 </span>            :   inline
<span class="lineNum">     550 </span>            :   void create_symlink(const path&amp; to, const path&amp; new_symlink, system::error_code&amp; ec)
<span class="lineNum">     551 </span>            :                                        {detail::create_symlink(to, new_symlink, &amp;ec);}
<span class="lineNum">     552 </span>            :   inline
<span class="lineNum">     553 </span>            :   path current_path()                  {return detail::current_path();}
<span class="lineNum">     554 </span>            : 
<span class="lineNum">     555 </span>            :   inline
<span class="lineNum">     556 </span>            :   path current_path(system::error_code&amp; ec) {return detail::current_path(&amp;ec);}
<span class="lineNum">     557 </span>            : 
<span class="lineNum">     558 </span>            :   inline
<span class="lineNum">     559 </span>            :   void current_path(const path&amp; p)     {detail::current_path(p);}
<span class="lineNum">     560 </span>            : 
<span class="lineNum">     561 </span>            :   inline
<span class="lineNum">     562 </span>            :   void current_path(const path&amp; p, system::error_code&amp; ec) {detail::current_path(p, &amp;ec);}
<span class="lineNum">     563 </span>            : 
<span class="lineNum">     564 </span>            :   inline
<span class="lineNum">     565 </span>            :   bool equivalent(const path&amp; p1, const path&amp; p2) {return detail::equivalent(p1, p2);}
<span class="lineNum">     566 </span>            : 
<span class="lineNum">     567 </span>            :   inline
<span class="lineNum">     568 </span>            :   bool equivalent(const path&amp; p1, const path&amp; p2, system::error_code&amp; ec)
<span class="lineNum">     569 </span>            :                                        {return detail::equivalent(p1, p2, &amp;ec);}
<span class="lineNum">     570 </span>            :   inline
<span class="lineNum">     571 </span>            :   boost::uintmax_t file_size(const path&amp; p) {return detail::file_size(p);}
<span class="lineNum">     572 </span>            : 
<span class="lineNum">     573 </span>            :   inline
<span class="lineNum">     574 </span>            :   boost::uintmax_t file_size(const path&amp; p, system::error_code&amp; ec)
<span class="lineNum">     575 </span>            :                                        {return detail::file_size(p, &amp;ec);}
<span class="lineNum">     576 </span>            :   inline
<span class="lineNum">     577 </span>            :   boost::uintmax_t hard_link_count(const path&amp; p) {return detail::hard_link_count(p);}
<span class="lineNum">     578 </span>            : 
<span class="lineNum">     579 </span>            :   inline
<span class="lineNum">     580 </span>            :   boost::uintmax_t hard_link_count(const path&amp; p, system::error_code&amp; ec)
<span class="lineNum">     581 </span>            :                                        {return detail::hard_link_count(p, &amp;ec);}
<span class="lineNum">     582 </span>            :   inline
<span class="lineNum">     583 </span>            :   path initial_path()                  {return detail::initial_path();}
<span class="lineNum">     584 </span>            : 
<span class="lineNum">     585 </span>            :   inline
<span class="lineNum">     586 </span>            :   path initial_path(system::error_code&amp; ec) {return detail::initial_path(&amp;ec);}
<span class="lineNum">     587 </span>            : 
<span class="lineNum">     588 </span>            :   template &lt;class Path&gt;
<span class="lineNum">     589 </span>            :   path initial_path() {return initial_path();}
<span class="lineNum">     590 </span>            :   template &lt;class Path&gt;
<span class="lineNum">     591 </span>            :   path initial_path(system::error_code&amp; ec) {return detail::initial_path(&amp;ec);}
<span class="lineNum">     592 </span>            : 
<span class="lineNum">     593 </span>            :   inline
<span class="lineNum">     594 </span>            :   std::time_t last_write_time(const path&amp; p) {return detail::last_write_time(p);}
<span class="lineNum">     595 </span>            : 
<span class="lineNum">     596 </span>            :   inline
<span class="lineNum">     597 </span>            :   std::time_t last_write_time(const path&amp; p, system::error_code&amp; ec)
<span class="lineNum">     598 </span>            :                                        {return detail::last_write_time(p, &amp;ec);}
<span class="lineNum">     599 </span>            :   inline
<span class="lineNum">     600 </span>            :   void last_write_time(const path&amp; p, const std::time_t new_time)
<span class="lineNum">     601 </span>            :                                        {detail::last_write_time(p, new_time);}
<span class="lineNum">     602 </span>            :   inline
<span class="lineNum">     603 </span>            :   void last_write_time(const path&amp; p, const std::time_t new_time, system::error_code&amp; ec)
<span class="lineNum">     604 </span>            :                                        {detail::last_write_time(p, new_time, &amp;ec);}
<span class="lineNum">     605 </span>            :   inline
<span class="lineNum">     606 </span>            :   void permissions(const path&amp; p, perms prms)
<span class="lineNum">     607 </span>            :                                        {detail::permissions(p, prms);}
<span class="lineNum">     608 </span>            :   inline
<span class="lineNum">     609 </span>            :   void permissions(const path&amp; p, perms prms, system::error_code&amp; ec)
<span class="lineNum">     610 </span>            :                                        {detail::permissions(p, prms, &amp;ec);}
<span class="lineNum">     611 </span>            : 
<span class="lineNum">     612 </span>            :   inline
<span class="lineNum">     613 </span>            :   path read_symlink(const path&amp; p)     {return detail::read_symlink(p);}
<span class="lineNum">     614 </span>            : 
<span class="lineNum">     615 </span>            :   inline
<span class="lineNum">     616 </span>            :   path read_symlink(const path&amp; p, system::error_code&amp; ec)
<span class="lineNum">     617 </span>            :                                        {return detail::read_symlink(p, &amp;ec);}
<span class="lineNum">     618 </span>            :   inline
<span class="lineNum">     619 </span>            :     // For standardization, if the committee doesn't like &quot;remove&quot;, consider &quot;eliminate&quot;
<span class="lineNum">     620 </span>            :   bool remove(const path&amp; p)           {return detail::remove(p);}
<span class="lineNum">     621 </span>            : 
<span class="lineNum">     622 </span>            :   inline
<span class="lineNum">     623 </span>            :   bool remove(const path&amp; p, system::error_code&amp; ec) {return detail::remove(p, &amp;ec);}
<span class="lineNum">     624 </span>            : 
<span class="lineNum">     625 </span>            :   inline
<span class="lineNum">     626 </span>            :   boost::uintmax_t remove_all(const path&amp; p) {return detail::remove_all(p);}
<span class="lineNum">     627 </span>            :     
<span class="lineNum">     628 </span>            :   inline
<span class="lineNum">     629 </span>            :   boost::uintmax_t remove_all(const path&amp; p, system::error_code&amp; ec)
<span class="lineNum">     630 </span>            :                                        {return detail::remove_all(p, &amp;ec);}
<span class="lineNum">     631 </span>            :   inline
<span class="lineNum">     632 </span>            :   void rename(const path&amp; old_p, const path&amp; new_p) {detail::rename(old_p, new_p);}
<span class="lineNum">     633 </span>            : 
<span class="lineNum">     634 </span>            :   inline
<span class="lineNum">     635 </span>            :   void rename(const path&amp; old_p, const path&amp; new_p, system::error_code&amp; ec)
<span class="lineNum">     636 </span>            :                                        {detail::rename(old_p, new_p, &amp;ec);}
<span class="lineNum">     637 </span>            :   inline  // name suggested by Scott McMurray
<span class="lineNum">     638 </span>            :   void resize_file(const path&amp; p, uintmax_t size) {detail::resize_file(p, size);}
<span class="lineNum">     639 </span>            : 
<span class="lineNum">     640 </span>            :   inline
<span class="lineNum">     641 </span>            :   void resize_file(const path&amp; p, uintmax_t size, system::error_code&amp; ec)
<span class="lineNum">     642 </span>            :                                        {detail::resize_file(p, size, &amp;ec);}
<span class="lineNum">     643 </span>            :   inline
<span class="lineNum">     644 </span>            :   space_info space(const path&amp; p)      {return detail::space(p);} 
<span class="lineNum">     645 </span>            : 
<span class="lineNum">     646 </span>            :   inline
<span class="lineNum">     647 </span>            :   space_info space(const path&amp; p, system::error_code&amp; ec) {return detail::space(p, &amp;ec);} 
<span class="lineNum">     648 </span>            : 
<span class="lineNum">     649 </span>            : # ifndef BOOST_FILESYSTEM_NO_DEPRECATED
<span class="lineNum">     650 </span>            :   inline bool symbolic_link_exists(const path&amp; p)
<span class="lineNum">     651 </span>            :                                        { return is_symlink(symlink_status(p)); }
<span class="lineNum">     652 </span>            : # endif
<span class="lineNum">     653 </span>            : 
<span class="lineNum">     654 </span>            :   inline
<span class="lineNum">     655 </span>            :   path system_complete(const path&amp; p)  {return detail::system_complete(p);}
<span class="lineNum">     656 </span>            : 
<span class="lineNum">     657 </span>            :   inline
<span class="lineNum">     658 </span>            :   path system_complete(const path&amp; p, system::error_code&amp; ec)
<span class="lineNum">     659 </span>            :                                        {return detail::system_complete(p, &amp;ec);}
<span class="lineNum">     660 </span>            :   inline
<span class="lineNum">     661 </span>            :   path temp_directory_path()           {return detail::temp_directory_path();}
<span class="lineNum">     662 </span>            : 
<span class="lineNum">     663 </span>            :   inline
<span class="lineNum">     664 </span>            :   path temp_directory_path(system::error_code&amp; ec) 
<span class="lineNum">     665 </span>            :                                        {return detail::temp_directory_path(&amp;ec);}
<span class="lineNum">     666 </span>            :   inline
<span class="lineNum">     667 </span>            :   path unique_path(const path&amp; p=&quot;%%%%-%%%%-%%%%-%%%%&quot;)
<span class="lineNum">     668 </span>            :                                        { return detail::unique_path(p); }
<span class="lineNum">     669 </span>            :   inline
<span class="lineNum">     670 </span>            :   path unique_path(const path&amp; p, system::error_code&amp; ec)
<span class="lineNum">     671 </span>            :                                        { return detail::unique_path(p, &amp;ec); }
<span class="lineNum">     672 </span>            : 
<span class="lineNum">     673 </span>            : //--------------------------------------------------------------------------------------//
<span class="lineNum">     674 </span>            : //                                                                                      //
<span class="lineNum">     675 </span>            : //                                 directory_entry                                      //
<span class="lineNum">     676 </span>            : //                                                                                      //
<span class="lineNum">     677 </span>            : //--------------------------------------------------------------------------------------//
<span class="lineNum">     678 </span>            : 
<span class="lineNum">     679 </span>            : //  GCC has a problem with a member function named path within a namespace or 
<span class="lineNum">     680 </span>            : //  sub-namespace that also has a class named path. The workaround is to always
<span class="lineNum">     681 </span>            : //  fully qualify the name path when it refers to the class name.
<span class="lineNum">     682 </span>            : 
<span class="lineNum">     683 </span><span class="lineNoCov">          0 : class BOOST_FILESYSTEM_DECL directory_entry</span>
<span class="lineNum">     684 </span>            : {
<span class="lineNum">     685 </span>            : public:
<span class="lineNum">     686 </span>            : 
<span class="lineNum">     687 </span>            :   // compiler generated copy constructor, copy assignment, and destructor apply
<span class="lineNum">     688 </span>            : 
<span class="lineNum">     689 </span>            :   directory_entry() {}
<span class="lineNum">     690 </span>            :   explicit directory_entry(const boost::filesystem::path&amp; p,
<span class="lineNum">     691 </span>            :     file_status st = file_status(), file_status symlink_st=file_status())
<span class="lineNum">     692 </span>            :     : m_path(p), m_status(st), m_symlink_status(symlink_st)
<span class="lineNum">     693 </span>            :     {}
<span class="lineNum">     694 </span>            : 
<span class="lineNum">     695 </span>            :   void assign(const boost::filesystem::path&amp; p,
<span class="lineNum">     696 </span>            :     file_status st = file_status(), file_status symlink_st = file_status())
<span class="lineNum">     697 </span>            :     { m_path = p; m_status = st; m_symlink_status = symlink_st; }
<span class="lineNum">     698 </span>            : 
<span class="lineNum">     699 </span>            :   void replace_filename(const boost::filesystem::path&amp; p,
<span class="lineNum">     700 </span>            :     file_status st = file_status(), file_status symlink_st = file_status())
<span class="lineNum">     701 </span>            :   {
<span class="lineNum">     702 </span>            :     m_path.remove_filename();
<span class="lineNum">     703 </span>            :     m_path /= p;
<span class="lineNum">     704 </span>            :     m_status = st;
<span class="lineNum">     705 </span>            :     m_symlink_status = symlink_st;
<span class="lineNum">     706 </span>            :   }
<span class="lineNum">     707 </span>            : 
<span class="lineNum">     708 </span>            : # ifndef BOOST_FILESYSTEM_NO_DEPRECATED
<span class="lineNum">     709 </span>            :   void replace_leaf(const boost::filesystem::path&amp; p,
<span class="lineNum">     710 </span>            :     file_status st, file_status symlink_st)
<span class="lineNum">     711 </span>            :       { replace_filename(p, st, symlink_st); }
<span class="lineNum">     712 </span>            : # endif
<span class="lineNum">     713 </span>            : 
<span class="lineNum">     714 </span>            :   const boost::filesystem::path&amp;  path() const               {return m_path;}
<span class="lineNum">     715 </span>            :   file_status   status() const                               {return m_get_status();}
<span class="lineNum">     716 </span>            :   file_status   status(system::error_code&amp; ec) const         {return m_get_status(&amp;ec);}
<span class="lineNum">     717 </span>            :   file_status   symlink_status() const                       {return m_get_symlink_status();}
<span class="lineNum">     718 </span>            :   file_status   symlink_status(system::error_code&amp; ec) const {return m_get_symlink_status(&amp;ec);}
<span class="lineNum">     719 </span>            : 
<span class="lineNum">     720 </span>            :   bool operator==(const directory_entry&amp; rhs) {return m_path == rhs.m_path;} 
<span class="lineNum">     721 </span>            :   bool operator!=(const directory_entry&amp; rhs) {return m_path != rhs.m_path;} 
<span class="lineNum">     722 </span>            :   bool operator&lt; (const directory_entry&amp; rhs) {return m_path &lt; rhs.m_path;} 
<span class="lineNum">     723 </span>            :   bool operator&lt;=(const directory_entry&amp; rhs) {return m_path &lt;= rhs.m_path;} 
<span class="lineNum">     724 </span>            :   bool operator&gt; (const directory_entry&amp; rhs) {return m_path &gt; rhs.m_path;} 
<span class="lineNum">     725 </span>            :   bool operator&gt;=(const directory_entry&amp; rhs) {return m_path &gt;= rhs.m_path;} 
<span class="lineNum">     726 </span>            : 
<span class="lineNum">     727 </span>            : private:
<span class="lineNum">     728 </span>            :   boost::filesystem::path   m_path;
<span class="lineNum">     729 </span>            :   mutable file_status       m_status;           // stat()-like
<span class="lineNum">     730 </span>            :   mutable file_status       m_symlink_status;   // lstat()-like
<span class="lineNum">     731 </span>            : 
<span class="lineNum">     732 </span>            :   file_status m_get_status(system::error_code* ec=0) const;
<span class="lineNum">     733 </span>            :   file_status m_get_symlink_status(system::error_code* ec=0) const;
<span class="lineNum">     734 </span>            : }; // directory_entry
<span class="lineNum">     735 </span>            : 
<span class="lineNum">     736 </span>            : //--------------------------------------------------------------------------------------//
<span class="lineNum">     737 </span>            : //                                                                                      //
<span class="lineNum">     738 </span>            : //                            directory_iterator helpers                                //
<span class="lineNum">     739 </span>            : //                                                                                      //
<span class="lineNum">     740 </span>            : //--------------------------------------------------------------------------------------//
<span class="lineNum">     741 </span>            : 
<span class="lineNum">     742 </span>            : class directory_iterator;
<span class="lineNum">     743 </span>            : 
<span class="lineNum">     744 </span>            : namespace detail
<span class="lineNum">     745 </span>            : {
<span class="lineNum">     746 </span>            :   BOOST_FILESYSTEM_DECL
<span class="lineNum">     747 </span>            :     system::error_code dir_itr_close(// never throws()
<span class="lineNum">     748 </span>            :     void *&amp; handle
<span class="lineNum">     749 </span>            : #   if     defined(BOOST_POSIX_API)
<span class="lineNum">     750 </span>            :     , void *&amp; buffer
<span class="lineNum">     751 </span>            : #   endif
<span class="lineNum">     752 </span>            :   ); 
<span class="lineNum">     753 </span>            : 
<span class="lineNum">     754 </span>            :   struct dir_itr_imp
<span class="lineNum">     755 </span>            :   {
<span class="lineNum">     756 </span>            :     directory_entry  dir_entry;
<span class="lineNum">     757 </span>            :     void*            handle;
<span class="lineNum">     758 </span>            : 
<span class="lineNum">     759 </span>            : #   ifdef BOOST_POSIX_API
<span class="lineNum">     760 </span>            :     void*            buffer;  // see dir_itr_increment implementation
<span class="lineNum">     761 </span>            : #   endif
<span class="lineNum">     762 </span>            : 
<span class="lineNum">     763 </span>            :     dir_itr_imp() : handle(0)
<span class="lineNum">     764 </span>            : #   ifdef BOOST_POSIX_API
<span class="lineNum">     765 </span>            :       , buffer(0)
<span class="lineNum">     766 </span>            : #   endif
<a name="767"><span class="lineNum">     767 </span>            :     {}</a>
<span class="lineNum">     768 </span>            : 
<span class="lineNum">     769 </span><span class="lineNoCov">          0 :     ~dir_itr_imp() // never throws</span>
<span class="lineNum">     770 </span><span class="lineNoCov">          0 :     {</span>
<span class="lineNum">     771 </span>            :       dir_itr_close(handle
<span class="lineNum">     772 </span>            : #       if defined(BOOST_POSIX_API)
<span class="lineNum">     773 </span>            :          , buffer
<span class="lineNum">     774 </span>            : #       endif
<span class="lineNum">     775 </span><span class="lineNoCov">          0 :     );</span>
<span class="lineNum">     776 </span><span class="lineNoCov">          0 :     }</span>
<span class="lineNum">     777 </span>            :   };
<span class="lineNum">     778 </span>            : 
<span class="lineNum">     779 </span>            :   // see path::iterator: comment below
<span class="lineNum">     780 </span>            :   BOOST_FILESYSTEM_DECL void directory_iterator_construct(directory_iterator&amp; it,
<span class="lineNum">     781 </span>            :     const path&amp; p, system::error_code* ec);
<span class="lineNum">     782 </span>            :   BOOST_FILESYSTEM_DECL void directory_iterator_increment(directory_iterator&amp; it,
<span class="lineNum">     783 </span>            :     system::error_code* ec);
<span class="lineNum">     784 </span>            : 
<span class="lineNum">     785 </span>            : }  // namespace detail
<span class="lineNum">     786 </span>            : 
<span class="lineNum">     787 </span>            : //--------------------------------------------------------------------------------------//
<span class="lineNum">     788 </span>            : //                                                                                      //
<span class="lineNum">     789 </span>            : //                                directory_iterator                                    //
<span class="lineNum">     790 </span>            : //                                                                                      //
<span class="lineNum">     791 </span>            : //--------------------------------------------------------------------------------------//
<span class="lineNum">     792 </span>            : 
<span class="lineNum">     793 </span>            :   class directory_iterator
<span class="lineNum">     794 </span>            :     : public boost::iterator_facade&lt; directory_iterator,
<span class="lineNum">     795 </span>            :                                      directory_entry,
<span class="lineNum">     796 </span>            :                                      boost::single_pass_traversal_tag &gt;
<span class="lineNum">     797 </span>            :   {
<span class="lineNum">     798 </span>            :   public:
<span class="lineNum">     799 </span>            : 
<span class="lineNum">     800 </span>            :     directory_iterator(){}  // creates the &quot;end&quot; iterator
<span class="lineNum">     801 </span>            : 
<span class="lineNum">     802 </span>            :     // iterator_facade derived classes don't seem to like implementations in
<span class="lineNum">     803 </span>            :     // separate translation unit dll's, so forward to detail functions
<span class="lineNum">     804 </span>            :     explicit directory_iterator(const path&amp; p)
<span class="lineNum">     805 </span>            :         : m_imp(new detail::dir_itr_imp)
<span class="lineNum">     806 </span>            :           { detail::directory_iterator_construct(*this, p, 0); }
<span class="lineNum">     807 </span>            : 
<span class="lineNum">     808 </span>            :     directory_iterator(const path&amp; p, system::error_code&amp; ec)
<span class="lineNum">     809 </span>            :         : m_imp(new detail::dir_itr_imp)
<span class="lineNum">     810 </span>            :           { detail::directory_iterator_construct(*this, p, &amp;ec); }
<span class="lineNum">     811 </span>            : 
<span class="lineNum">     812 </span><span class="lineNoCov">          0 :    ~directory_iterator() {} // never throws</span>
<span class="lineNum">     813 </span>            : 
<span class="lineNum">     814 </span>            :     directory_iterator&amp; increment(system::error_code&amp; ec)
<span class="lineNum">     815 </span>            :     { 
<span class="lineNum">     816 </span>            :       detail::directory_iterator_increment(*this, &amp;ec);
<span class="lineNum">     817 </span>            :       return *this;
<span class="lineNum">     818 </span>            :     }
<span class="lineNum">     819 </span>            : 
<span class="lineNum">     820 </span>            :   private:
<span class="lineNum">     821 </span>            :     friend struct detail::dir_itr_imp;
<span class="lineNum">     822 </span>            :     friend BOOST_FILESYSTEM_DECL void detail::directory_iterator_construct(directory_iterator&amp; it,
<span class="lineNum">     823 </span>            :       const path&amp; p, system::error_code* ec);
<span class="lineNum">     824 </span>            :     friend BOOST_FILESYSTEM_DECL void detail::directory_iterator_increment(directory_iterator&amp; it,
<span class="lineNum">     825 </span>            :       system::error_code* ec);
<span class="lineNum">     826 </span>            : 
<span class="lineNum">     827 </span>            :     // shared_ptr provides shallow-copy semantics required for InputIterators.
<span class="lineNum">     828 </span>            :     // m_imp.get()==0 indicates the end iterator.
<span class="lineNum">     829 </span>            :     boost::shared_ptr&lt; detail::dir_itr_imp &gt;  m_imp;
<span class="lineNum">     830 </span>            : 
<span class="lineNum">     831 </span>            :     friend class boost::iterator_core_access;
<span class="lineNum">     832 </span>            : 
<span class="lineNum">     833 </span>            :     boost::iterator_facade&lt;
<span class="lineNum">     834 </span>            :       directory_iterator,
<span class="lineNum">     835 </span>            :       directory_entry,
<span class="lineNum">     836 </span>            :       boost::single_pass_traversal_tag &gt;::reference dereference() const 
<span class="lineNum">     837 </span>            :     {
<span class="lineNum">     838 </span>            :       BOOST_ASSERT_MSG(m_imp.get(), &quot;attempt to dereference end iterator&quot;);
<span class="lineNum">     839 </span>            :       return m_imp-&gt;dir_entry;
<span class="lineNum">     840 </span>            :     }
<span class="lineNum">     841 </span>            : 
<span class="lineNum">     842 </span>            :     void increment() { detail::directory_iterator_increment(*this, 0); }
<span class="lineNum">     843 </span>            : 
<span class="lineNum">     844 </span>            :     bool equal(const directory_iterator&amp; rhs) const
<span class="lineNum">     845 </span>            :       { return m_imp == rhs.m_imp; }
<span class="lineNum">     846 </span>            : 
<span class="lineNum">     847 </span>            :   };  // directory_iterator
<span class="lineNum">     848 </span>            : 
<span class="lineNum">     849 </span>            :   //  enable directory_iterator C++11 range-base for statement use  --------------------//
<span class="lineNum">     850 </span>            : 
<span class="lineNum">     851 </span>            :   //  begin() and end() are only used by a range-based for statement in the context of
<span class="lineNum">     852 </span>            :   //  auto - thus the top-level const is stripped - so returning const is harmless and
<span class="lineNum">     853 </span>            :   //  emphasizes begin() is just a pass through.
<span class="lineNum">     854 </span>            :   inline
<span class="lineNum">     855 </span>            :   const directory_iterator&amp; begin(const directory_iterator&amp; iter)  {return iter;}
<span class="lineNum">     856 </span>            :   inline
<span class="lineNum">     857 </span>            :   directory_iterator end(const directory_iterator&amp;)  {return directory_iterator();}
<span class="lineNum">     858 </span>            : 
<span class="lineNum">     859 </span>            :   //  enable directory_iterator BOOST_FOREACH  -----------------------------------------//
<span class="lineNum">     860 </span>            : 
<span class="lineNum">     861 </span>            :   inline
<span class="lineNum">     862 </span>            :   directory_iterator&amp; range_begin(directory_iterator&amp; iter) {return iter;}
<span class="lineNum">     863 </span>            :   inline
<span class="lineNum">     864 </span>            :   directory_iterator range_begin(const directory_iterator&amp; iter) {return iter;}
<span class="lineNum">     865 </span>            :   inline
<span class="lineNum">     866 </span>            :   directory_iterator range_end(const directory_iterator&amp;) {return directory_iterator();}
<span class="lineNum">     867 </span>            :   }  // namespace filesystem
<span class="lineNum">     868 </span>            : 
<span class="lineNum">     869 </span>            :   //  namespace boost template specializations
<span class="lineNum">     870 </span>            :   template&lt;&gt;
<span class="lineNum">     871 </span>            :   struct range_mutable_iterator&lt;boost::filesystem::directory_iterator&gt;
<span class="lineNum">     872 </span>            :     { typedef boost::filesystem::directory_iterator type; };
<span class="lineNum">     873 </span>            :   template&lt;&gt;
<span class="lineNum">     874 </span>            :   struct range_const_iterator &lt;boost::filesystem::directory_iterator&gt;
<span class="lineNum">     875 </span>            :     { typedef boost::filesystem::directory_iterator type; };
<span class="lineNum">     876 </span>            : 
<span class="lineNum">     877 </span>            : namespace filesystem
<span class="lineNum">     878 </span>            : {
<span class="lineNum">     879 </span>            : 
<span class="lineNum">     880 </span>            : //--------------------------------------------------------------------------------------//
<span class="lineNum">     881 </span>            : //                                                                                      //
<span class="lineNum">     882 </span>            : //                      recursive_directory_iterator helpers                            //
<span class="lineNum">     883 </span>            : //                                                                                      //
<span class="lineNum">     884 </span>            : //--------------------------------------------------------------------------------------//
<span class="lineNum">     885 </span>            : 
<span class="lineNum">     886 </span>            :   BOOST_SCOPED_ENUM_START(symlink_option)
<span class="lineNum">     887 </span>            :   {
<span class="lineNum">     888 </span>            :     none,
<span class="lineNum">     889 </span>            :     no_recurse = none,         // don't follow directory symlinks (default behavior)
<span class="lineNum">     890 </span>            :     recurse,                   // follow directory symlinks
<span class="lineNum">     891 </span>            :     _detail_no_push = recurse &lt;&lt; 1  // internal use only
<span class="lineNum">     892 </span>            :   };
<span class="lineNum">     893 </span>            :   BOOST_SCOPED_ENUM_END
<span class="lineNum">     894 </span>            : 
<span class="lineNum">     895 </span>            :   BOOST_BITMASK(BOOST_SCOPED_ENUM(symlink_option))
<span class="lineNum">     896 </span>            : 
<span class="lineNum">     897 </span>            :   namespace detail
<span class="lineNum">     898 </span>            :   {
<span class="lineNum">     899 </span><span class="lineNoCov">          0 :     struct recur_dir_itr_imp</span>
<span class="lineNum">     900 </span>            :     {
<span class="lineNum">     901 </span>            :       typedef directory_iterator element_type;
<span class="lineNum">     902 </span>            :       std::stack&lt; element_type, std::vector&lt; element_type &gt; &gt; m_stack;
<span class="lineNum">     903 </span>            :       int  m_level;
<span class="lineNum">     904 </span>            :       BOOST_SCOPED_ENUM(symlink_option) m_options;
<span class="lineNum">     905 </span>            : 
<span class="lineNum">     906 </span>            :       recur_dir_itr_imp() : m_level(0), m_options(symlink_option::none) {}
<span class="lineNum">     907 </span>            : 
<span class="lineNum">     908 </span>            :       void increment(system::error_code* ec);  // ec == 0 means throw on error
<span class="lineNum">     909 </span>            : 
<span class="lineNum">     910 </span>            :       bool push_directory(system::error_code&amp; ec) BOOST_NOEXCEPT;
<span class="lineNum">     911 </span>            : 
<span class="lineNum">     912 </span>            :       void pop();
<span class="lineNum">     913 </span>            : 
<span class="lineNum">     914 </span>            :     };
<span class="lineNum">     915 </span>            : 
<span class="lineNum">     916 </span>            :     //  Implementation is inline to avoid dynamic linking difficulties with m_stack:
<span class="lineNum">     917 </span>            :     //  Microsoft warning C4251, m_stack needs to have dll-interface to be used by
<span class="lineNum">     918 </span>            :     //  clients of struct 'boost::filesystem::detail::recur_dir_itr_imp'
<span class="lineNum">     919 </span>            : 
<span class="lineNum">     920 </span>            :     inline
<span class="lineNum">     921 </span>            :     bool recur_dir_itr_imp::push_directory(system::error_code&amp; ec) BOOST_NOEXCEPT
<span class="lineNum">     922 </span>            :     // Returns: true if push occurs, otherwise false. Always returns false on error.
<span class="lineNum">     923 </span>            :     {
<span class="lineNum">     924 </span>            :       ec.clear();
<span class="lineNum">     925 </span>            : 
<span class="lineNum">     926 </span>            :       //  Discover if the iterator is for a directory that needs to be recursed into,
<span class="lineNum">     927 </span>            :       //  taking symlinks and options into account.
<span class="lineNum">     928 </span>            : 
<span class="lineNum">     929 </span>            :       if ((m_options &amp; symlink_option::_detail_no_push) == symlink_option::_detail_no_push)
<span class="lineNum">     930 </span>            :         m_options &amp;= ~symlink_option::_detail_no_push;
<span class="lineNum">     931 </span>            : 
<span class="lineNum">     932 </span>            :       else
<span class="lineNum">     933 </span>            :       {
<span class="lineNum">     934 </span>            :         // Logic for following predicate was contributed by Daniel Aarno to handle cyclic
<span class="lineNum">     935 </span>            :         // symlinks correctly and efficiently, fixing ticket #5652.
<span class="lineNum">     936 </span>            :         //   if (((m_options &amp; symlink_option::recurse) == symlink_option::recurse
<span class="lineNum">     937 </span>            :         //         || !is_symlink(m_stack.top()-&gt;symlink_status()))
<span class="lineNum">     938 </span>            :         //       &amp;&amp; is_directory(m_stack.top()-&gt;status())) ...
<span class="lineNum">     939 </span>            :         // The predicate code has since been rewritten to pass error_code arguments,
<span class="lineNum">     940 </span>            :         // per ticket #5653.
<span class="lineNum">     941 </span>            : 
<span class="lineNum">     942 </span>            :         file_status symlink_stat;
<span class="lineNum">     943 </span>            : 
<span class="lineNum">     944 </span>            :         if ((m_options &amp; symlink_option::recurse) != symlink_option::recurse)
<span class="lineNum">     945 </span>            :         {
<span class="lineNum">     946 </span>            :           symlink_stat = m_stack.top()-&gt;symlink_status(ec);
<span class="lineNum">     947 </span>            :           if (ec)
<span class="lineNum">     948 </span>            :             return false;
<span class="lineNum">     949 </span>            :         }
<span class="lineNum">     950 </span>            : 
<span class="lineNum">     951 </span>            :         if ((m_options &amp; symlink_option::recurse) == symlink_option::recurse
<span class="lineNum">     952 </span>            :           || !is_symlink(symlink_stat))
<span class="lineNum">     953 </span>            :         {
<span class="lineNum">     954 </span>            :           file_status stat = m_stack.top()-&gt;status(ec);
<span class="lineNum">     955 </span>            :           if (ec || !is_directory(stat))
<span class="lineNum">     956 </span>            :             return false;
<span class="lineNum">     957 </span>            : 
<span class="lineNum">     958 </span>            :           directory_iterator next(m_stack.top()-&gt;path(), ec);
<span class="lineNum">     959 </span>            :           if (!ec &amp;&amp; next != directory_iterator())
<span class="lineNum">     960 </span>            :           {
<span class="lineNum">     961 </span>            :             m_stack.push(next);
<span class="lineNum">     962 </span>            :             ++m_level;
<span class="lineNum">     963 </span>            :             return true;
<span class="lineNum">     964 </span>            :           }
<span class="lineNum">     965 </span>            :         }
<span class="lineNum">     966 </span>            :       }
<span class="lineNum">     967 </span>            :       return false;
<span class="lineNum">     968 </span>            :     }
<span class="lineNum">     969 </span>            : 
<span class="lineNum">     970 </span>            :     inline
<span class="lineNum">     971 </span>            :     void recur_dir_itr_imp::increment(system::error_code* ec)
<span class="lineNum">     972 </span>            :     // ec == 0 means throw on error
<span class="lineNum">     973 </span>            :     // 
<span class="lineNum">     974 </span>            :     // Invariant: On return, the top of the iterator stack is the next valid (possibly
<span class="lineNum">     975 </span>            :     // end) iterator, regardless of whether or not an error is reported, and regardless of
<span class="lineNum">     976 </span>            :     // whether any error is reported by exception or error code. In other words, progress
<span class="lineNum">     977 </span>            :     // is always made so a loop on the iterator will always eventually terminate
<span class="lineNum">     978 </span>            :     // regardless of errors.
<span class="lineNum">     979 </span>            :     {
<span class="lineNum">     980 </span>            :       system::error_code ec_push_directory;
<span class="lineNum">     981 </span>            : 
<span class="lineNum">     982 </span>            :       //  if various conditions are met, push a directory_iterator into the iterator stack
<span class="lineNum">     983 </span>            :       if (push_directory(ec_push_directory))
<span class="lineNum">     984 </span>            :       {
<span class="lineNum">     985 </span>            :         if (ec)
<span class="lineNum">     986 </span>            :           ec-&gt;clear();
<span class="lineNum">     987 </span>            :         return;
<span class="lineNum">     988 </span>            :       }
<span class="lineNum">     989 </span>            : 
<span class="lineNum">     990 </span>            :       //  Do the actual increment operation on the top iterator in the iterator
<span class="lineNum">     991 </span>            :       //  stack, popping the stack if necessary, until either the stack is empty or a
<span class="lineNum">     992 </span>            :       //  non-end iterator is reached.
<span class="lineNum">     993 </span>            :       while (!m_stack.empty() &amp;&amp; ++m_stack.top() == directory_iterator())
<span class="lineNum">     994 </span>            :       {
<span class="lineNum">     995 </span>            :         m_stack.pop();
<span class="lineNum">     996 </span>            :         --m_level;
<span class="lineNum">     997 </span>            :       }
<span class="lineNum">     998 </span>            : 
<span class="lineNum">     999 </span>            :       // report errors if any
<span class="lineNum">    1000 </span>            :       if (ec_push_directory)
<span class="lineNum">    1001 </span>            :       {
<span class="lineNum">    1002 </span>            :         if (ec)
<span class="lineNum">    1003 </span>            :           *ec = ec_push_directory;
<span class="lineNum">    1004 </span>            :         else
<span class="lineNum">    1005 </span>            :         {
<span class="lineNum">    1006 </span>            :           BOOST_FILESYSTEM_THROW(filesystem_error(
<span class="lineNum">    1007 </span>            :             &quot;filesystem::recursive_directory_iterator directory error&quot;,
<span class="lineNum">    1008 </span>            :             ec_push_directory));
<span class="lineNum">    1009 </span>            :         }
<span class="lineNum">    1010 </span>            :       }
<span class="lineNum">    1011 </span>            :       else if (ec)
<span class="lineNum">    1012 </span>            :         ec-&gt;clear();
<span class="lineNum">    1013 </span>            :     }
<span class="lineNum">    1014 </span>            : 
<span class="lineNum">    1015 </span>            :     inline
<span class="lineNum">    1016 </span>            :     void recur_dir_itr_imp::pop()
<span class="lineNum">    1017 </span>            :     {
<span class="lineNum">    1018 </span>            :       BOOST_ASSERT_MSG(m_level &gt; 0,
<span class="lineNum">    1019 </span>            :         &quot;pop() on recursive_directory_iterator with level &lt; 1&quot;);
<span class="lineNum">    1020 </span>            : 
<span class="lineNum">    1021 </span>            :       do
<span class="lineNum">    1022 </span>            :       {
<span class="lineNum">    1023 </span>            :         m_stack.pop();
<span class="lineNum">    1024 </span>            :         --m_level;
<span class="lineNum">    1025 </span>            :       }
<span class="lineNum">    1026 </span>            :       while (!m_stack.empty() &amp;&amp; ++m_stack.top() == directory_iterator());
<span class="lineNum">    1027 </span>            :     }
<span class="lineNum">    1028 </span>            :   } // namespace detail
<span class="lineNum">    1029 </span>            : 
<span class="lineNum">    1030 </span>            : //--------------------------------------------------------------------------------------//
<span class="lineNum">    1031 </span>            : //                                                                                      //
<span class="lineNum">    1032 </span>            : //                           recursive_directory_iterator                               //
<span class="lineNum">    1033 </span>            : //                                                                                      //
<span class="lineNum">    1034 </span>            : //--------------------------------------------------------------------------------------//
<span class="lineNum">    1035 </span>            : 
<span class="lineNum">    1036 </span>            :   class recursive_directory_iterator
<span class="lineNum">    1037 </span>            :     : public boost::iterator_facade&lt;
<span class="lineNum">    1038 </span>            :         recursive_directory_iterator,
<span class="lineNum">    1039 </span>            :         directory_entry,
<span class="lineNum">    1040 </span>            :         boost::single_pass_traversal_tag &gt;
<span class="lineNum">    1041 </span>            :   {
<span class="lineNum">    1042 </span>            :   public:
<span class="lineNum">    1043 </span>            : 
<span class="lineNum">    1044 </span>            :     recursive_directory_iterator(){}  // creates the &quot;end&quot; iterator
<span class="lineNum">    1045 </span>            : 
<span class="lineNum">    1046 </span>            :     explicit recursive_directory_iterator(const path&amp; dir_path,
<span class="lineNum">    1047 </span>            :       BOOST_SCOPED_ENUM(symlink_option) opt = symlink_option::none)
<span class="lineNum">    1048 </span>            :       : m_imp(new detail::recur_dir_itr_imp)
<span class="lineNum">    1049 </span>            :     {
<span class="lineNum">    1050 </span>            :       m_imp-&gt;m_options = opt;
<span class="lineNum">    1051 </span>            :       m_imp-&gt;m_stack.push(directory_iterator(dir_path));
<span class="lineNum">    1052 </span>            :       if (m_imp-&gt;m_stack.top() == directory_iterator())
<span class="lineNum">    1053 </span>            :         { m_imp.reset (); }
<span class="lineNum">    1054 </span>            :     }
<span class="lineNum">    1055 </span>            : 
<span class="lineNum">    1056 </span>            :     recursive_directory_iterator(const path&amp; dir_path,
<span class="lineNum">    1057 </span>            :       BOOST_SCOPED_ENUM(symlink_option) opt,
<span class="lineNum">    1058 </span>            :       system::error_code &amp; ec)
<span class="lineNum">    1059 </span>            :     : m_imp(new detail::recur_dir_itr_imp)
<span class="lineNum">    1060 </span>            :     {
<span class="lineNum">    1061 </span>            :       m_imp-&gt;m_options = opt;
<span class="lineNum">    1062 </span>            :       m_imp-&gt;m_stack.push(directory_iterator(dir_path, ec));
<span class="lineNum">    1063 </span>            :       if (m_imp-&gt;m_stack.top() == directory_iterator())
<span class="lineNum">    1064 </span>            :         { m_imp.reset (); }
<span class="lineNum">    1065 </span>            :     }
<span class="lineNum">    1066 </span>            : 
<span class="lineNum">    1067 </span>            :     recursive_directory_iterator(const path&amp; dir_path,
<span class="lineNum">    1068 </span>            :       system::error_code &amp; ec)
<span class="lineNum">    1069 </span>            :     : m_imp(new detail::recur_dir_itr_imp)
<span class="lineNum">    1070 </span>            :     {
<span class="lineNum">    1071 </span>            :       m_imp-&gt;m_options = symlink_option::none;
<span class="lineNum">    1072 </span>            :       m_imp-&gt;m_stack.push(directory_iterator(dir_path, ec));
<span class="lineNum">    1073 </span>            :       if (m_imp-&gt;m_stack.top() == directory_iterator())
<span class="lineNum">    1074 </span>            :         { m_imp.reset (); }
<span class="lineNum">    1075 </span>            :     }
<span class="lineNum">    1076 </span>            : 
<span class="lineNum">    1077 </span>            :     recursive_directory_iterator&amp; increment(system::error_code&amp; ec)
<span class="lineNum">    1078 </span>            :     {
<span class="lineNum">    1079 </span>            :       BOOST_ASSERT_MSG(m_imp.get(),
<span class="lineNum">    1080 </span>            :         &quot;increment() on end recursive_directory_iterator&quot;);
<span class="lineNum">    1081 </span>            :       m_imp-&gt;increment(&amp;ec);
<span class="lineNum">    1082 </span>            :       if (m_imp-&gt;m_stack.empty())
<span class="lineNum">    1083 </span>            :         m_imp.reset(); // done, so make end iterator
<span class="lineNum">    1084 </span>            :       return *this;
<span class="lineNum">    1085 </span>            :     }
<span class="lineNum">    1086 </span>            : 
<span class="lineNum">    1087 </span>            :     int level() const
<span class="lineNum">    1088 </span>            :     { 
<span class="lineNum">    1089 </span>            :       BOOST_ASSERT_MSG(m_imp.get(),
<span class="lineNum">    1090 </span>            :         &quot;level() on end recursive_directory_iterator&quot;);
<span class="lineNum">    1091 </span>            :       return m_imp-&gt;m_level;
<span class="lineNum">    1092 </span>            :     }
<span class="lineNum">    1093 </span>            : 
<span class="lineNum">    1094 </span>            :     bool no_push_pending() const
<span class="lineNum">    1095 </span>            :     {
<span class="lineNum">    1096 </span>            :       BOOST_ASSERT_MSG(m_imp.get(),
<span class="lineNum">    1097 </span>            :         &quot;is_no_push_requested() on end recursive_directory_iterator&quot;);
<span class="lineNum">    1098 </span>            :       return (m_imp-&gt;m_options &amp; symlink_option::_detail_no_push)
<span class="lineNum">    1099 </span>            :         == symlink_option::_detail_no_push;
<span class="lineNum">    1100 </span>            :     }
<span class="lineNum">    1101 </span>            : 
<span class="lineNum">    1102 </span>            : #   ifndef BOOST_FILESYSTEM_NO_DEPRECATED
<span class="lineNum">    1103 </span>            :     bool no_push_request() const { return no_push_pending(); }
<span class="lineNum">    1104 </span>            : #   endif
<span class="lineNum">    1105 </span>            : 
<span class="lineNum">    1106 </span>            :     void pop()
<span class="lineNum">    1107 </span>            :     { 
<span class="lineNum">    1108 </span>            :       BOOST_ASSERT_MSG(m_imp.get(),
<span class="lineNum">    1109 </span>            :         &quot;pop() on end recursive_directory_iterator&quot;);
<span class="lineNum">    1110 </span>            :       m_imp-&gt;pop();
<span class="lineNum">    1111 </span>            :       if (m_imp-&gt;m_stack.empty()) m_imp.reset(); // done, so make end iterator
<span class="lineNum">    1112 </span>            :     }
<span class="lineNum">    1113 </span>            : 
<span class="lineNum">    1114 </span>            :     void no_push(bool value=true)
<span class="lineNum">    1115 </span>            :     {
<span class="lineNum">    1116 </span>            :       BOOST_ASSERT_MSG(m_imp.get(),
<span class="lineNum">    1117 </span>            :         &quot;no_push() on end recursive_directory_iterator&quot;);
<span class="lineNum">    1118 </span>            :       if (value)
<span class="lineNum">    1119 </span>            :         m_imp-&gt;m_options |= symlink_option::_detail_no_push;
<span class="lineNum">    1120 </span>            :       else
<span class="lineNum">    1121 </span>            :         m_imp-&gt;m_options &amp;= ~symlink_option::_detail_no_push;
<span class="lineNum">    1122 </span>            :     }
<span class="lineNum">    1123 </span>            : 
<span class="lineNum">    1124 </span>            :     file_status status() const
<span class="lineNum">    1125 </span>            :     {
<span class="lineNum">    1126 </span>            :       BOOST_ASSERT_MSG(m_imp.get(),
<span class="lineNum">    1127 </span>            :         &quot;status() on end recursive_directory_iterator&quot;);
<span class="lineNum">    1128 </span>            :       return m_imp-&gt;m_stack.top()-&gt;status();
<span class="lineNum">    1129 </span>            :     }
<span class="lineNum">    1130 </span>            : 
<span class="lineNum">    1131 </span>            :     file_status symlink_status() const
<span class="lineNum">    1132 </span>            :     {
<span class="lineNum">    1133 </span>            :       BOOST_ASSERT_MSG(m_imp.get(),
<span class="lineNum">    1134 </span>            :         &quot;symlink_status() on end recursive_directory_iterator&quot;);
<span class="lineNum">    1135 </span>            :       return m_imp-&gt;m_stack.top()-&gt;symlink_status();
<span class="lineNum">    1136 </span>            :     }
<span class="lineNum">    1137 </span>            : 
<span class="lineNum">    1138 </span>            :   private:
<span class="lineNum">    1139 </span>            : 
<span class="lineNum">    1140 </span>            :     // shared_ptr provides shallow-copy semantics required for InputIterators.
<span class="lineNum">    1141 </span>            :     // m_imp.get()==0 indicates the end iterator.
<span class="lineNum">    1142 </span>            :     boost::shared_ptr&lt; detail::recur_dir_itr_imp &gt;  m_imp;
<span class="lineNum">    1143 </span>            : 
<span class="lineNum">    1144 </span>            :     friend class boost::iterator_core_access;
<span class="lineNum">    1145 </span>            : 
<span class="lineNum">    1146 </span>            :     boost::iterator_facade&lt; 
<span class="lineNum">    1147 </span>            :       recursive_directory_iterator,
<span class="lineNum">    1148 </span>            :       directory_entry,
<span class="lineNum">    1149 </span>            :       boost::single_pass_traversal_tag &gt;::reference
<span class="lineNum">    1150 </span>            :     dereference() const 
<span class="lineNum">    1151 </span>            :     {
<span class="lineNum">    1152 </span>            :       BOOST_ASSERT_MSG(m_imp.get(),
<span class="lineNum">    1153 </span>            :         &quot;dereference of end recursive_directory_iterator&quot;);
<span class="lineNum">    1154 </span>            :       return *m_imp-&gt;m_stack.top();
<span class="lineNum">    1155 </span>            :     }
<span class="lineNum">    1156 </span>            : 
<span class="lineNum">    1157 </span>            :     void increment()
<span class="lineNum">    1158 </span>            :     { 
<span class="lineNum">    1159 </span>            :       BOOST_ASSERT_MSG(m_imp.get(),
<span class="lineNum">    1160 </span>            :         &quot;increment of end recursive_directory_iterator&quot;);
<span class="lineNum">    1161 </span>            :       m_imp-&gt;increment(0);
<span class="lineNum">    1162 </span>            :       if (m_imp-&gt;m_stack.empty())
<span class="lineNum">    1163 </span>            :         m_imp.reset(); // done, so make end iterator
<span class="lineNum">    1164 </span>            :     }
<span class="lineNum">    1165 </span>            : 
<span class="lineNum">    1166 </span>            :     bool equal(const recursive_directory_iterator&amp; rhs) const
<span class="lineNum">    1167 </span>            :       { return m_imp == rhs.m_imp; }
<span class="lineNum">    1168 </span>            : 
<span class="lineNum">    1169 </span>            :   };  // recursive directory iterator
<span class="lineNum">    1170 </span>            : 
<span class="lineNum">    1171 </span>            :   //  enable recursive directory iterator C++11 range-base for statement use  ----------//
<span class="lineNum">    1172 </span>            : 
<span class="lineNum">    1173 </span>            :   //  begin() and end() are only used by a range-based for statement in the context of
<span class="lineNum">    1174 </span>            :   //  auto - thus the top-level const is stripped - so returning const is harmless and
<span class="lineNum">    1175 </span>            :   //  emphasizes begin() is just a pass through.
<span class="lineNum">    1176 </span>            :   inline
<span class="lineNum">    1177 </span>            :   const recursive_directory_iterator&amp; begin(const recursive_directory_iterator&amp; iter)
<span class="lineNum">    1178 </span>            :                                                                             {return iter;}
<span class="lineNum">    1179 </span>            :   inline
<span class="lineNum">    1180 </span>            :   recursive_directory_iterator end(const recursive_directory_iterator&amp;)
<span class="lineNum">    1181 </span>            :                                                   {return recursive_directory_iterator();}
<span class="lineNum">    1182 </span>            : 
<span class="lineNum">    1183 </span>            :   //  enable recursive directory iterator BOOST_FOREACH  -------------------------------//
<span class="lineNum">    1184 </span>            : 
<span class="lineNum">    1185 </span>            :   inline
<span class="lineNum">    1186 </span>            :   recursive_directory_iterator&amp; range_begin(recursive_directory_iterator&amp; iter)
<span class="lineNum">    1187 </span>            :                                                                             {return iter;}
<span class="lineNum">    1188 </span>            :   inline
<span class="lineNum">    1189 </span>            :   recursive_directory_iterator range_begin(const recursive_directory_iterator&amp; iter)
<span class="lineNum">    1190 </span>            :                                                                             {return iter;}
<span class="lineNum">    1191 </span>            :   inline
<span class="lineNum">    1192 </span>            :   recursive_directory_iterator range_end(const recursive_directory_iterator&amp;)
<span class="lineNum">    1193 </span>            :                                                   {return recursive_directory_iterator();}
<span class="lineNum">    1194 </span>            :   }  // namespace filesystem
<span class="lineNum">    1195 </span>            : 
<span class="lineNum">    1196 </span>            :   //  namespace boost template specializations
<span class="lineNum">    1197 </span>            :   template&lt;&gt;
<span class="lineNum">    1198 </span>            :   struct range_mutable_iterator&lt;boost::filesystem::recursive_directory_iterator&gt;
<span class="lineNum">    1199 </span>            :                         { typedef boost::filesystem::recursive_directory_iterator type; };
<span class="lineNum">    1200 </span>            :   template&lt;&gt;
<span class="lineNum">    1201 </span>            :   struct range_const_iterator &lt;boost::filesystem::recursive_directory_iterator&gt;
<span class="lineNum">    1202 </span>            :                         { typedef boost::filesystem::recursive_directory_iterator type; };
<span class="lineNum">    1203 </span>            : 
<span class="lineNum">    1204 </span>            : namespace filesystem
<span class="lineNum">    1205 </span>            : {
<span class="lineNum">    1206 </span>            : 
<span class="lineNum">    1207 </span>            : # if !defined(BOOST_FILESYSTEM_NO_DEPRECATED)
<span class="lineNum">    1208 </span>            :   typedef recursive_directory_iterator wrecursive_directory_iterator;
<span class="lineNum">    1209 </span>            : # endif
<span class="lineNum">    1210 </span>            : 
<span class="lineNum">    1211 </span>            : //  test helper  -----------------------------------------------------------------------//
<span class="lineNum">    1212 </span>            : 
<span class="lineNum">    1213 </span>            : //  Not part of the documented interface since false positives are possible;
<span class="lineNum">    1214 </span>            : //  there is no law that says that an OS that has large stat.st_size
<span class="lineNum">    1215 </span>            : //  actually supports large file sizes.
<span class="lineNum">    1216 </span>            : 
<span class="lineNum">    1217 </span>            :   namespace detail
<span class="lineNum">    1218 </span>            :   {
<span class="lineNum">    1219 </span>            :     BOOST_FILESYSTEM_DECL bool possible_large_file_size_support();
<span class="lineNum">    1220 </span>            :   }
<span class="lineNum">    1221 </span>            : 
<span class="lineNum">    1222 </span>            :   } // namespace filesystem
<span class="lineNum">    1223 </span>            : } // namespace boost
<span class="lineNum">    1224 </span>            : 
<span class="lineNum">    1225 </span>            : #include &lt;boost/config/abi_suffix.hpp&gt; // pops abi_prefix.hpp pragmas
<span class="lineNum">    1226 </span>            : #endif // BOOST_FILESYSTEM3_OPERATIONS_HPP
</pre>
      </td>
    </tr>
  </table>
  <br>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="ruler"><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>
    <tr><td class="versionInfo">Generated by: <a href="http://ltp.sourceforge.net/coverage/lcov.php" target="_parent">LCOV version 1.12</a></td></tr>
  </table>
  <br>

</body>
</html>
